{% extends 'base/base.html' %}


{% block main %}


    <form action="" method="post">
     {% csrf_token %}
        <div class="form-group">
            {{ form.old_password.label_tag }}
            {{ form.old_password }}

            {% if form.old_password.errors %}
                {% for error in form.old_password.errors  %}
                    <p class="text-danger">{{ error }}</p>
                {% endfor %}
            {% endif %}
        </div>
        <div class="form-group">
            {{ form.password.label_tag }}
            {{ form.password }}
                  {% if form.password.errors %}
                {% for error in form.password.errors  %}
                    <p class="text-danger">{{ error }}</p>
                {% endfor %}
            {% endif %}
        </div>
        <div class="form-group">
            {{ form.password2.label_tag }}
            {{ form.password2 }}
                  {% if form.password2.errors %}
                {% for error in form.password2.errors  %}
                    <p class="text-danger">{{ error }}</p>
                {% endfor %}
            {% endif %}
        </div>

        <button type="submit" class="btn btn-default">修改密码</button>
    </form>

{% endblock %}